package com.huiyun.project.pay.biz;

import com.huiyun.project.common.security.annotation.EnablePigxFeignClients;
import com.huiyun.project.common.security.annotation.EnablePigxResourceServer;
import com.huiyun.project.common.swagger.annotation.EnablePigxSwagger2;
import com.huiyun.project.pay.biz.config.StartupRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;

@EnablePigxSwagger2
@SpringCloudApplication
@EnablePigxFeignClients
@EnablePigxResourceServer
@SpringBootConfiguration
@EnableAsync
public class HuiYunPayApplication {

    public static void main(String[] args) {
        SpringApplication.run(HuiYunPayApplication.class, args);
    }

    @Bean
    public StartupRunner startupRunner() {
        return new StartupRunner();
    }
}


